import styled from 'styled-components'
import logoPic from '../../statics/logo.png'
export const HeadWrapper = styled.div`
    width: 100%;
    height: 58px;
    border-bottom: 1px solid #f0f0f0;
    position: fixed;
    top:0;
    left:0;
    z-index: 1;
    background:#fff;
`;
export const Logo = styled.div`
    width: 100px;
    height: 58px;
    cursor: pointer;
    background: url(${ logoPic });
    background-size: contain;
    display: block; 
    position: absolute;
    left: 0;
    top: 0;
`;
export const Nav = styled.div`
    width: 960px;
    height: 58px;
    margin: 0 auto;
    padding-right: 20px;
    box-sizing: border-box;
    .iconfont{
       font-size: 20px;
    }
`;
export const NavItem = styled.div`
    width: 89px;
    height: 58px;
    font-size: 15px;
    line-height: 58px;
    text-align: center;
    &.left{
        float: left;
        cursor: pointer;
    }
    &.right{
        float: right;
        color: #969696;
        cursor: pointer;
    }
    &.active{
        color: #ea6f5a;
    };

`;
export const Navsearch = styled.input.attrs({
    placeholder: '搜索'
})`
    &.sliding-enter{
        transition: all .2s ease-out;
    }
    &.sliding-enter-active{
        width: 255px;

    }
    &.sliding-exit{
        transition: all .2s ease-in;
    }
    &.sliding-exit-active{
    width: 160px;
    }
    width: 160px;
    height: 38px;
    border: 1px solid #eee;
    margin-top: 10px;
    border-radius: 40px;
    background: #eee;
    font-size: 14px;
    color: #666;
    outline: none;
    padding: 0 40px 0 20px;
    box-sizing: border-box;
    margin-left: 20px;
    &::placeholder{
        color: #999;
    }
    &.focused{
        width: 255px;
    }
`;
export const Addition = styled.div`
   height: 58px;
   position: absolute;
   top: 0;
   right: 0;
   .iconfont{
       margin-right: 2px;
   }
`;
export const Button = styled.div`
    float: right;
    line-height: 38px;
    height:38px;
    margin: 9px 20px 0px 0px;
    border: 1px solid rgba(236,97,73,.7);
    border-radius: 20px;
    font-size: 15px;
    padding: 0 20px;
    &.writter{
        cursor: pointer;
        color: #fff;
        background-color: #ea6f5a;
    }
    &.reg{
        cursor: pointer;
        color: #ea6f5a;
        background-color: transparent;
    }

`
export const NavWrapper = styled.div`
    
        float: left;
        position: relative;
        .zoom{
            position: absolute;
            right: 3px;
            top: 16px;
            width: 25px;
            height: 25px;
            border-radius: 19px;
            text-align: center;
            line-height: 25px;
            &.focused{
                background: #969696;
                color: #777;
            }
        }
`
export const SearchInfo = styled.div`
         width: 250px;
         left: 0;
         z-index: 1;
         border-radius: 4px;
         margin-top: 10px;
         margin-left: 20px;
         position: absolute;
         background-color: #fff;
         box-shadow: 0 0 8px rgba(0,0,0,.2);
         padding: 20px 20px 10px;
         box-sizing: border-box;
         position: absolute;
`
export const SearchInfoHeader = styled.div`
         height: 20px;
         margin-bottom: 10px;
         width: 210px;
         .spin{
            display: block;
            float: right;
            margin-right: 2px;
            margin-top: 2px;
            font-size: 12px;
            color: #969696;
            transition: all .2s ease-in;
            transform-origin: center center;
        }

`
export const SearchInfoTitle = styled.div`
        float: left;
      
        font-size: 14px;
        color: #969696;
`
export const SearchInfoSwitch = styled.a`
        float: right;
        display: block;
        font-size: 13px;
        color: #969696;
        cursor: pointer;

    
`
export const SearchInfoBody = styled.div`
        
`
export const SearchInfoList = styled.div`
        padding: 2px 6px;
        font-size: 12px;
        color: #787878;
        border: 1px solid #ddd;
        border-radius: 3px;
        
        margin-right: 10px;
        display: inline-block;
        margin-bottom: 5px;
        
`